package com.example.ctrip.entity;

public class StepReturn<T> {
    private int retCode;        //0需要刷新界面，1步骤正常返回可进行下一步骤，2网络报错从新更换IP，3任务报错无法执行，4所有步骤执行完毕
    private T response;         //retCode为2和3时的错误原因

    public StepReturn(int _retCode, T _response) {
        retCode = _retCode;
        response = _response;
    }

    public StepReturn(int _retCode) {
        retCode = _retCode;
    }

    public int getRetCode() {
        return retCode;
    }

    public T getResponse() {
        return response;
    }
}
